<template>
	<view class="content">
		
		<view class="rows" v-for="(item,index) in data" :key="index" @tap="tapThis(item.id,item.leftName)">
			<view class="left fontSize14">{{item.leftName}}</view>
			<view class="clearBoth"></view>
		</view>
		
		
	</view>
</template>
<style>
	.content{}
	.content .rows{width:90%;padding:4% 5%;}
	.content .rows .left{float: left;color:#30313B}
</style>
<script>
	import Share from '@/common/wx_share.js'
	export default {
		data() {
			return {
				share:{
					title:"",
					path:'/pages/tabbar/mine',
					imageUrl:'',
					desc:'',
					content:''
				},
				data:[
					// {"leftName":"1.如何解绑银行卡？","rightName":""},
					// {"leftName":"2.如何解绑手机号？","rightName":""},
					// {"leftName":"3.如何注销帐号？","rightName":""},
					// {"leftName":"4.怎么更改登录的帐号？","rightName":""},
					// {"leftName":"5.如何申请退款？","rightName":""},
					// {"leftName":"6.商品有问题怎么办?","rightName":""},
				]
			}
		},
		onLoad(){
			this.AjaxLoad();
		},
		methods: {
			AjaxLoad(){
				var list = []
				let param={
					"token":this._$userToken("userInfo").token,
				};
				this._$InitRequest.request('MemberInfo/get_use_help', param).then(res => {
					res.data.use_help_list.forEach( (item,index) =>{
						index  = index + 1
						list.push({
							id:item.id,
							leftName:item.ar_title
						})
					})
					list.forEach( (item) =>{
						this.data.push(item)
					})
				},error=>{})
			},
			tapThis(index,name){
				var names = name.split(".")[1]
				uni.navigateTo({
					url:"/pages_mine/pages/set_help_details/set_help_details?id=" + index + "&name=" + name
				})
			},
			
			
		}
	}
</script>